﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace HomeDump.Server.Components.MusicSearch
{
	/// <summary>
	/// Interface responsible for searching a path for music.
	/// </summary>
	public interface IMusicPath
	{
		/// <summary>
		/// Searches specified path for music files asynchronously.
		/// </summary>
		/// <param name="path">The path to search in.</param>
		/// <returns>Task with result containing music files found in specified path.</returns>
		Task<IEnumerable<MusicFile>> SearchForMusicFilesAsync(string path);
	}
}